{* Smarty *}
{include file="$template/header.tpl"}
{if ( isset($smarty.session.uid) ) }
<div id="left_column">
  {include file="$template/blocks/main.tpl"}
</div>
<div id="main">
	{include file="$template/$module_tpl"}
</div>
{elseif (isset($smarty.session.cabina))}
<div id="cabina">
	{include file="$template/$module_tpl"}
</div>
{else}
<div id="login">
	{include file="$template/$module_tpl"}
</div>
{/if}
{include file="$template/footer.tpl"}